import request from "../utils/request";
// 获取商品分类
export const getCateList = () => request.get("/api/pro/categorylist")
//获取商品分页数据
export const getProlist = (params?: IPage) => request.get("/api/pro/list", { params })
export interface IPage {
    count: number;
    limitNum: number
}
//获取商品详情数据
// 获取商品详情
export const getProDetail = (proid: string) => request.get(`/api/pro/detail/${proid}`);

//获取秒杀数据
export const getsecKill = (params?: IPage) => request.get("/api/pro/seckilllist", { params })